package com.aaa.controller;

import com.aaa.entity.YzhUser;
import com.aaa.service.YzhUserService;

import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (YzhUser)表控制层
 *
 * @author makejava
 * @since 2023-06-06 10:22:20
 */
@RestController
@RequestMapping("yzhUser")
public class YzhUserController {
    /**
     * 服务对象
     */
    @Resource
    private YzhUserService yzhUserService;

    // 查询所有的信息
    @GetMapping
    public List<YzhUser> queryAll(){
      return  yzhUserService.queryAll();
    }



}

